<template>
  <div class="grand-child">
    <h3>孙子组件A</h3>
    <h4>当前计数：{{ countA }}</h4>
  </div>
</template>

<script setup lang="ts" name="GrandChild1">
import { useCounterStore } from "@/stores/counterStore";
import { storeToRefs } from "pinia";
const { countA } = storeToRefs(useCounterStore());
</script>

<style scoped>
.grand-child {

  background-color: orange;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px black;
}
</style>
